package ro.toporjinschi.androidorm.test;

import ro.toporjinschi.androidorm.Entity;
import ro.toporjinschi.androidorm.annotation.Column;
import ro.toporjinschi.androidorm.annotation.Id;
import ro.toporjinschi.androidorm.annotation.NamedQueries;
import ro.toporjinschi.androidorm.annotation.NamedQuery;
import ro.toporjinschi.androidorm.annotation.TableName;
import ro.toporjinschi.androidorm.annotation.Transient;

@TableName("person")
@NamedQueries({ @NamedQuery(name = "findAll", sql = "SELECT * FROM places"), @NamedQuery(name = "findById", sql = "SELECT * FROM places WHERE id = {id}"),
        @NamedQuery(name = "findByTown", sql = "SELECT * FROM places WHERE town = {town}") })
public class Person implements Entity {
    @Id
    @Column
    private String firstname;
    @Column
    private String lastName;
    @Column(name = "middle_name")
    private String middleName;
    @Column
    private Boolean maried;
    @Column
    private Integer age;
    @Column
    private Long longInt;
    @Column
    private Short shortInt;
    @Column
    private Double doubleInt;
    @Transient
    private String transientValue;
    @Column
    private boolean valueHas;

    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getMiddleName() {
        return middleName;
    }

    public void setMiddleName(String middleName) {
        this.middleName = middleName;
    }

    public Boolean getMaried() {
        return maried;
    }

    public void setMaried(Boolean maried) {
        this.maried = maried;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Long getLongInt() {
        return longInt;
    }

    public void setLongInt(Long longInt) {
        this.longInt = longInt;
    }

    public Short getShortInt() {
        return shortInt;
    }

    public void setShortInt(Short shortInt) {
        this.shortInt = shortInt;
    }

    public Double getDoubleInt() {
        return doubleInt;
    }

    public void setDoubleInt(Double doubleInt) {
        this.doubleInt = doubleInt;
    }

    public String getTransientValue() {
        return transientValue;
    }

    public void setTransientValue(String transientValue) {
        this.transientValue = transientValue;
    }

    public boolean hasValueHas() {
        return valueHas;
    }

    public void setValueHas(boolean valueHas) {
        this.valueHas = valueHas;
    }
    
}
